package com.jessechanrui.template.common.template.auth.infrastructure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jessechanrui.template.core.infrastructure.BasePO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.jessechanrui.template.core.constant.Constants;

/**
 * @author chenrui
 * @version 1.0
 * @description UserPO
 * @date 2025/4/30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(Constants.TABLE_PREFIX + "console_user")
public class UserPO extends BasePO {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 用户昵称
     */
    @TableField("user_nickname")
    private String userNickname;
    /**
     * 用户密码
     */
    @TableField("user_password")
    private String userPassword;

    /**
     *gerrit用户名
     */
    @TableField(value = "gerrit_user_name")
    private String gerritUserName;

    /**
     *gerrit密码
     */
    @TableField(value = "gerrit_password")
    private String gerritPassword;

    /**
     *Gerrit密码类型是否为http证书密码
     */
    @TableField("gerrit_http_password")
    private Boolean gerritHttpPassword;
}
